package cn.yhz.pethome.dept.controller;

import cn.yhz.pethome.dept.domain.Logininfo;
import cn.yhz.pethome.dept.domain.Shop;
import cn.yhz.pethome.dept.service.ILogininfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/login")
public class LogininfoController {
    @Autowired
    private ILogininfoService logininfoService;
    /**
     * 查询去全部
     * @return
     */
    @GetMapping
    public List<Logininfo> selectAll(){
        return logininfoService.selectAll();
    }
}
